import axios from "axios";
export default function playById(item) {
  // console.log(item.name);
  axios({
    url: "/song/url",
    params: {
      id: item.id,
    },
  }).then((res) => {
    console.log(res);
    let url = res.data.data[0].url;
    let data = {
      url,
      name: item.name,
      picUrl: item.picUrl,
      alias: item.song.alias[0],
      arts: item.song.artists,
    };
    return data;
  });
};
